import request from '@/utils/request'

// 查询模板列表
export function listDemo1(query) {
  return request({
    url: '/demo1/demo1/list',
    method: 'get',
    params: query
  })
}

// 查询模板详细
export function getDemo1(id) {
  return request({
    url: '/demo1/demo1/' + id,
    method: 'get'
  })
}

// 新增模板
export function addDemo1(data) {
  return request({
    url: '/demo1/demo1',
    method: 'post',
    data: data
  })
}

// 修改模板
export function updateDemo1(data) {
  return request({
    url: '/demo1/demo1',
    method: 'put',
    data: data
  })
}

// 删除模板
export function delDemo1(id) {
  return request({
    url: '/demo1/demo1/' + id,
    method: 'delete'
  })
}
